Release 10.1A: OpenEdge Development:
ProDataSets
Defining the right top-level table for a ProDataSet
In many simplified examples that use the Sports2000 database, we show one or more
Customersand theCustomer’sOrders. WouldCustomer-Order-OrderLinethen be a good basis for a ProDataSet? To answer this, ask yourself another question: Do you think of all of aCustomer’sOrders as being a part of theCustomerobject itself? Probably not. You might want to represent or work with aCustomerobject and itsOrderobjects at the same time, but this doesn’t mean that you should combine them into a single ProDataSet or think of them as a single business entity.In a real database, a customer or client is typically represented by data in several tables. There might be a
Customerheader table, one or more addresses from anAddresstable, one or more contacts from aContactstable, and so on. This is probably the right set of tables to combine in aCustomerProDataSet.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |